//
//  KDManageRequestTool.m
//  WangJingApp
//
//  Created by 魏强 on 17/1/22.
//  Copyright © 2017年 KDTech. All rights reserved.
//

#import "KDManageRequestTool.h"
//#import "KDManagerRequestParam.h"
//#import "KDManagerRequestResult.h"
#import "KDBaseTool.h"
@implementation KDManageRequestTool
/**  管理日历 */
+ (void)getCalendarWithParam:(KDCalendarParam *)param success:(void (^)(KDBaseResult *responseObejct))success failure:(void(^)(NSError *error))failure{
    NSString *url = [NSString stringWithFormat:@"%@%@",ServerActionAddr,param.method];
    //    [KDBaseTool get:url param:param resultClass:[KDLoginResult class] success:success failure:failure];
    [KDBaseTool post:url param:param resultClass:[KDBaseResult class] success:success failure:failure];
}

+ (void)getMessegePostWithParam:(KDMessegePostParam *)param success:(void (^)(KDMessegePostResult *responseObejct))success failure:(void(^)(NSError *error))failure{
    NSString *url = [NSString stringWithFormat:@"%@%@",ServerActionAddr,param.method];
    [KDBaseTool post:url param:param resultClass:[KDMessegePostResult class] success:success failure:failure];
}

+ (void)getWebAnalyseWithParam:(KDBaseParam *)param success:(void (^)(KDBaseResult *responseObejct))success failure:(void(^)(NSError *error))failure{
    NSString *url = [NSString stringWithFormat:@"%@%@",ServerActionAddr,param.method];

    [KDBaseTool post:url param:param resultClass:[KDBaseResult class] success:success failure:failure];
}
@end
